/*
 * @Author: gmh
 * @Date: 2024-02-22 14:04:19
 * @Description: 组合式函数
 */
import type { XtxGuessInstance } from '@/types/component'
import { ref } from 'vue'

/**
 * @description: 猜你喜欢
 */
export const useGuessList = () => {
  // 获取猜你喜欢组件实例
  const guessRef = ref<XtxGuessInstance>()

  // 滚动触底事件
  const onScrolltolower = () => {
    guessRef.value?.getMore()
  }

  return {
    guessRef,
    onScrolltolower,
  }
}
